package com.group.activity.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group.common.utils.PageUtils;
import com.group.common.utils.Query;

import com.group.activity.dao.GroupGoodsDao;
import com.group.activity.entity.GroupGoodsEntity;
import com.group.activity.service.GroupGoodsService;


@Service("groupGoodsService")
public class GroupGoodsServiceImpl extends ServiceImpl<GroupGoodsDao, GroupGoodsEntity> implements GroupGoodsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GroupGoodsEntity> page = this.page(
                new Query<GroupGoodsEntity>().getPage(params),
                new QueryWrapper<GroupGoodsEntity>()
        );

        return new PageUtils(page);
    }

}